#pragma once

#include <QWidget>
#include "ui_EditProcedure.h"
#include"Common/TRDP_modifyResult.h"
class EditTRDPTestCase;
class EditEKETestCase;
class EditProcedure : public QWidget
{
	Q_OBJECT

public:
	EditProcedure(QWidget *parent = nullptr);
	~EditProcedure();

    void SetTestCaseName(QString strName);

	void connectAllSlots();

	void initControls();

    //将数据保存到Excel中
    void SaveModifyResultToExcel(QString strExclePath);
    void LoadModifyResultFromExcel(QString strExclePath);
private slots:
    void on_pushButton_Load_clicked();

    void on_pushButton_clicked();

signals:
    void changeTestcaseName(QString strName);
private:
	void onButtonCreateCliccked();
private:
	Ui::EditProcedureClass ui;

    QList<TRDP_ModifyResult> TrdpModifyResultList;

    void ShowTRDPModifyResult();
    void OnTRDPModifyFinish();
    EditTRDPTestCase* editTrdp;
    EditEKETestCase* editEke ;
};
